package diva.pap.merchant;

import java.util.List;

import static diva.lib.lang.Lang.list;

import diva.android_library.rpc.Response;
import diva.lib.json.JSONType;
import diva.pap.SellNotificationRequest;

public class MerchantSellNotificationRequest extends
    SellNotificationRequest<MerchantSellNotificationRequest> {

  public MerchantSellNotificationRequest(Response<MerchantSellNotificationRequest> response) {
    super(response);
  }

  public List<MerchantSellNotificationData> getSells() {
    List<MerchantSellNotificationData> sells = list();
    for (JSONType json : getSellsJson())
      sells.add(new MerchantSellNotificationData(json.asObject()));
    return sells;
  }

}
